package com.xy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xy.entity.ProductType;
import com.xy.mapper.ProductTypeMapper;
import com.xy.service.ProductTypeService;

@Service(value = "ProduceTypeService")
public class ProductTypeServiceImpl implements ProductTypeService {
	@Autowired
	private ProductTypeMapper productMapper;

	public boolean addProductType(ProductType productType) {
		return productMapper.addProductType(productType);
	}

	public boolean deleProductType(ProductType productType) {
		return productMapper.deleProductType(productType);
	}

	public boolean updateProductType(ProductType productType) {
		return productMapper.updateProductType(productType);
	}

	public List<ProductType> selectProductType(ProductType productType) {
		return productMapper.selectProductType(productType);
	}

}
